import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Hi from '@/components/hi'
import Hi1 from '@/components/Hi1'
import Hi2 from '@/components/Hi2'

Vue.use(Router)

export default new Router({
  routes: [
    { path: '/', name: 'HelloWorld', component: HelloWorld },
    { path: '/hi', component: Hi,
      children: [
      { path: 'Hi1', component: Hi1 },
      { path: 'Hi2', component: Hi2 },
     ]}
  ]
})
